Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.faceted.search.jsf.content.view--contentViews

This contribution is part of XML component org.nuxeo.ecm.platform.faceted.search.jsf.content.view inside nuxeo-platform-faceted-search-jsf-5.8.jar

Extension Point

Extension point contentViews of component ContentViewService.

Contributed Items

  • <contentView name="faceted_saved_searches">
    
          <showTitle>false</showTitle>
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <whereClause docType="AdvancedSearch">
              <predicate operator="FULLTEXT" parameter="ecm:fulltext">
                <field name="fulltext_all" schema="advanced_search"/>
              </predicate>
              <predicate operator="FULLTEXT" parameter="dc:title">
                <field name="title" schema="advanced_search"/>
              </predicate>
              <predicate operator="BETWEEN" parameter="dc:modified">
                <field name="modified_min" schema="advanced_search"/>
                <field name="modified_max" schema="advanced_search"/>
              </predicate>
              <fixedPart>
                ecm:mixinType = 'FacetedSearch'
                AND ecm:currentLifeCycleState != 'deleted'
                AND ecm:currentLifeCycleState != 'deleted'
                AND ecm:parentId = ?
              </fixedPart>
            </whereClause>
            <parameter>#{userWorkspaceManagerActions.currentUserPersonalWorkspace.id}</parameter>
            <sort ascending="true" column="dc:title"/>
            <pageSize>20</pageSize>
          </coreQueryPageProvider>
    
          <searchLayout filterDisplayType="quick" name="document_content_filter"/>
          <showFilterForm>true</showFilterForm>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
            <event>savedSearchesMigrated</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="document_listing_ajax" showCSVExport="true" showPDFExport="true" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>FACETED_SAVED_SEARCHES_CURRENT_SELECTION</selectionList>
          <actions category="FACETED_SAVED_SEARCHES_CURRENT_SELECTION_LIST"/>
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">
    <contentView name="faceted_saved_searches">

      <showTitle>false</showTitle>

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="AdvancedSearch">
          <predicate operator="FULLTEXT" parameter="ecm:fulltext">
            <field name="fulltext_all" schema="advanced_search"/>
          </predicate>
          <predicate operator="FULLTEXT" parameter="dc:title">
            <field name="title" schema="advanced_search"/>
          </predicate>
          <predicate operator="BETWEEN" parameter="dc:modified">
            <field name="modified_min" schema="advanced_search"/>
            <field name="modified_max" schema="advanced_search"/>
          </predicate>
          <fixedPart>
            ecm:mixinType = 'FacetedSearch'
            AND ecm:currentLifeCycleState != 'deleted'
            AND ecm:currentLifeCycleState != 'deleted'
            AND ecm:parentId = ?
          </fixedPart>
        </whereClause>
        <parameter>#{userWorkspaceManagerActions.currentUserPersonalWorkspace.id}</parameter>
        <sort ascending="true" column="dc:title"/>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <searchLayout filterDisplayType="quick" name="document_content_filter"/>
      <showFilterForm>true</showFilterForm>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
        <event>savedSearchesMigrated</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="document_listing_ajax" showCSVExport="true" showPDFExport="true" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>FACETED_SAVED_SEARCHES_CURRENT_SELECTION</selectionList>
      <actions category="FACETED_SAVED_SEARCHES_CURRENT_SELECTION_LIST"/>
    </contentView>

  </extension>